home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970326-19970626 / 000226_news@newsmaster….columbia.edu _Thu May 22 16:55:09 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id QAA12913
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Thu, 22 May 1997 16:55:08 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id QAA05797
  7.     for kermit.misc@watsun; Thu, 22 May 1997 16:55:08 -0400 (EDT)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Newsgroups: comp.protocols.kermit.misc,comp.os.linux.misc
  11. Subject: Re: Transmit drops the last 10-14 characters
  12. Date: 22 May 1997 20:55:07 GMT
  13. Organization: Columbia University
  14. Lines: 35
  15. Message-ID: <5m2brb$5l3$1@newsmaster.cc.columbia.edu>
  16. References: <338498B1.41C6@raleigh.ibm.com>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:7068 comp.os.linux.misc:195215
  19.  
  20. In article <338498B1.41C6@raleigh.ibm.com>,
  21. David Greeson  <dgreeson@raleigh.ibm.com> wrote:
  22. : I'm using C-Kermit's transmit command to transfer an
  23. : ascii file out of a serial port to an embedded uP.  I'm
  24. : running Linux v1.2.29 and I don't remember the C-Kermit
  25. : version, but I down loaded the version two months ago.
  26. : I set the following items:
  27. : set line /dev/cua0
  28. : set speed 19200
  29. : set file type binary (so it will transfer a byte at a time)
  30. : set flow xon
  31. : Then I set the uP to receive the ascii file and type crtl-\c
  32. : C-kermit> transmit foo.bar
  33. : The uP receives the whole file except for the last 10-14
  34. : characters.  The com port has a 16550A uart.
  35. :
  36. But what about the microprocessor?  Does it have a buffered
  37. UART?  Does it do flow control?
  38.  
  39. : I was wondering
  40. : if C-Kermit opened the device; transmitted the file; Then
  41. : closed the device before all the characters were transmitted?
  42. :
  43. That might have happened under 4.2BSD, but Linux is based on
  44. System V &/or POSIX, in which a close() call ensures that all
  45. pending output is flushed.  If it's not doing that I think we have 
  46. an OS or driver bug.
  47.  
  48. But before jumping to conclusions, how do we know that Kermit did
  49. not send all the bytes?  Have you put a data scope on the line?
  50.  
  51. - Frank